package com.abel.quiz.dao;/**
 * Created by abel.lin on 2017/2/10.
 */

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author abel.lin
 * @date_time 2017/2/10 17:02
 * @description
 */
public interface BaseDao<T,C> {
    int countByExample(C example);

    int deleteByExample(C example);

    int deleteByPrimaryKey(String id);

    int insert(T record);

    int insertSelective(T record);

    List<T> selectByExample(C example);

    T selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") T record, @Param("example") C example);

    int updateByExample(@Param("record") T record, @Param("example") C example);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);
}
